import 'package:flutter/material.dart';
import 'package:flutter_order_food/model/model.dart';

import 'shop_item_card.dart';

class ShopCard extends StatefulWidget {
  const ShopCard({Key key}) : super(key: key);

  @override
  _ShopCardState createState() => _ShopCardState();
}

class _ShopCardState extends State<ShopCard> {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 280,
      child: ListView.builder(
        scrollDirection: Axis.horizontal,
        itemCount: shopCards.length,
        itemBuilder: (context, index) => ShopItemCard(shop: shopCards[index]),
      ),
    );
  }
}
